package com.gulimall.common.constant;

/**
 * @Author by董江
 * @Tool Intellij IDEA
 * @Classname WareConstant
 * @Date 2022/5/6 22:42
 */
public class WareConstant {

    /**
     * 采购单状态枚举类
     */
    public enum PurchaseStatusEnum {
        NEWCREATE(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVED(2, "已领取"),
        FINISHED(3, "已完成"),
        HASERROR(4,"有异常");

        private final int code;
        private final String msg;

        PurchaseStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
    /**
     * 采购需求状态枚举类
     */
    public enum PurchaseDetailStatusEnum {
        NEWCREATE(0, "新建"),
        ASSIGNED(1, "已分配"),
        PURCHASING(2, "正在采购"),
        FINISHED(3, "已完成"),
        FAILED(4,"采购失败");

        private final int code;
        private final String msg;

        PurchaseDetailStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
